package com.example.doudou.demos.pojo.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
 * @Author fangtao
 * @Date 2025 02 14 10 43
 * @Description
 **/




/**
 * 错误枚举
 */
@Getter
@AllArgsConstructor
public enum ErrorEnum {

    A0001("0001","用户端错误 "), // 一级宏观错误码


    // ------------------------------------------------------------------------------- //
    A0100("0100","用户注册错误"), // 二级宏观错误码

    A0101("0101","用户未同意隐私协议"),
    A0102("0102","注册国家或地区受限"),

    A0110("0110","用户名校验失败"),
    A0111("0111","用户名已存在"),
    A0112("0112","用户名包含敏感词"),
    A0113("0113","用户名包含特殊字符"),


    // ------------------------------------------------------------------------------- //
    A0200("0200","用户登录异常"), // 二级宏观错误码

    A0201("0201","用户账户不存在"),
    A0202("0202","用户账户被冻结"),
    A0203("0203","用户账户已作废"),

    A0210("0210","用户密码错误"),
    A0211("0211","用户输入密码错误次数超限"),


    // ------------------------------------------------------------------------------- //
    A0400("0400","用户请求参数错误"), // 二级宏观错误码

    A0420("0420","请求参数值超出允许的范围"),
    A0421("0421","参数格式不匹配"),
    A0422("0422","地址不在服务范"),
    A0423("0423","时间不在服务范围"),
    A0424("0424","金额超出限制"),
    A0425("0425","数量超出限制"),
    A0426("0426","请求批量处理总个数超出限制"),
    A0427("0427","请求 JSON 解析失败"),
    A0428("0428","日志记录错误");

    private final String errorCode;
    private final String errorMessage;


}

